using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;

using ChuanPlus.DAO;
using DevExpress.Data.Filtering;
namespace ChuanPlus.Reports
{
    public partial class production_master : DevExpress.XtraReports.UI.XtraReport
    {
        public production_master()
        {
            InitializeComponent();
            xpColProduction.AddRange(ProductionDAO.GetProductions("P"));
        }

        private void PageHeader_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
           
        }

        private void production_master_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            CriteriaOperator criteria = new BinaryOperator(new OperandProperty("ProductionID"), new OperandValue(paraProductId.Value), BinaryOperatorType.Equal);
            xpColProduction.Criteria = criteria;
        }

        private void xrSubreport1_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
           // this.production_sub1.Parameters[0].Value = this.GetCurrentColumnValue("ProductionID").ToString();      
        }

    }
}
